\hypertarget{classTuna_1_1Momentum__XCoDi}{
\subsection{Tuna::Momentum\_\-XCoDi$<$ Tscheme $>$ Class Template Reference}
\label{classTuna_1_1Momentum__XCoDi}\index{Tuna::Momentum\_\-XCoDi@{Tuna::Momentum\_\-XCoDi}}
}


This class derives from \hyperlink{classTuna_1_1GeneralEquation}{GeneralEquation} through B \& N trick.  


Inheritance diagram for Tuna::Momentum\_\-XCoDi$<$ Tscheme $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classTuna_1_1Momentum__XCoDi}
\end{center}
\end{figure}
\subsubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef Typeinfo$<$ Tscheme $>$::\hyperlink{classTuna_1_1Momentum__XCoDi_a9c64180e74e18bae52da3a87dcd0ba1b}{prec\_\-t} \hyperlink{classTuna_1_1Momentum__XCoDi_a9c64180e74e18bae52da3a87dcd0ba1b}{prec\_\-t}
\begin{DoxyCompactList}\small\item\em Precision used for the numerical operations. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classTuna_1_1Momentum__XCoDi_a4e4a795b05b49505783cd9ddc37fb42e}{Momentum\_\-XCoDi} (ScalarField \&phi\_\-global, DiagMat \&matrix, ScalarField \&b, const floatTinyArray\_\-t \&deltas)
\begin{DoxyCompactList}\small\item\em Main constructor. \end{DoxyCompactList}\item 
Tscheme \& \hyperlink{classTuna_1_1Momentum__XCoDi_a9a90652dd51be81d5e3538e7be350cd1}{asDerived} ()
\begin{DoxyCompactList}\small\item\em The Curiously Recursive Template Pattern (CRTP) is used. \end{DoxyCompactList}\item 
\hypertarget{classTuna_1_1Momentum__XCoDi_a93d361383f86db3bc4e28ba5fc7ad830}{
bool \hyperlink{classTuna_1_1Momentum__XCoDi_a93d361383f86db3bc4e28ba5fc7ad830}{calcCoefficients} ()}
\label{classTuna_1_1Momentum__XCoDi_a93d361383f86db3bc4e28ba5fc7ad830}

\begin{DoxyCompactList}\small\item\em Call to the functions defined in the derived classes. \end{DoxyCompactList}\item 
bool \hyperlink{classTuna_1_1Momentum__XCoDi_ad8b8812ebd97675d751fe6a137fc7e86}{calcCoefficients} (const ScalarField \&nut)
\begin{DoxyCompactList}\small\item\em Function to calculate the coefficients of discrete equations for turbulent regime. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
\subsubsection*{template$<$typename Tscheme$>$class Tuna::Momentum\_\-XCoDi$<$ Tscheme $>$}

In this class some particular variables and methods for scalar PDE's are defined. This class implements the FVM discretized x-\/component of momentum equation for Newtonian incompressible fluids.

\begin{DoxyAuthor}{Author}
Luis M. de la Cruz \mbox{[} Thu May 7 13:55:49 CDT 2009 \mbox{]} 
\end{DoxyAuthor}


Definition at line 46 of file Momentum\_\-XCoDi.hpp.



\subsubsection{Member Typedef Documentation}
\hypertarget{classTuna_1_1Momentum__XCoDi_a9c64180e74e18bae52da3a87dcd0ba1b}{
\index{Tuna::Momentum\_\-XCoDi@{Tuna::Momentum\_\-XCoDi}!prec\_\-t@{prec\_\-t}}
\index{prec\_\-t@{prec\_\-t}!Tuna::Momentum_XCoDi@{Tuna::Momentum\_\-XCoDi}}
\paragraph[{prec\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ typedef Typeinfo$<$Tscheme$>$::{\bf prec\_\-t} {\bf Tuna::Momentum\_\-XCoDi}$<$ Tscheme $>$::{\bf prec\_\-t}}}
\label{classTuna_1_1Momentum__XCoDi_a9c64180e74e18bae52da3a87dcd0ba1b}


Reimplemented from \hyperlink{classTuna_1_1GeneralEquation_a39e7293ae9e10a2fc90f422da1d28ecd}{Tuna::GeneralEquation$<$ Momentum\_\-XCoDi$<$ Tscheme $>$ $>$}.



Definition at line 51 of file Momentum\_\-XCoDi.hpp.



\subsubsection{Constructor \& Destructor Documentation}
\hypertarget{classTuna_1_1Momentum__XCoDi_a4e4a795b05b49505783cd9ddc37fb42e}{
\index{Tuna::Momentum\_\-XCoDi@{Tuna::Momentum\_\-XCoDi}!Momentum\_\-XCoDi@{Momentum\_\-XCoDi}}
\index{Momentum\_\-XCoDi@{Momentum\_\-XCoDi}!Tuna::Momentum_XCoDi@{Tuna::Momentum\_\-XCoDi}}
\paragraph[{Momentum\_\-XCoDi}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ {\bf Tuna::Momentum\_\-XCoDi}$<$ Tscheme $>$::{\bf Momentum\_\-XCoDi} (
\begin{DoxyParamCaption}
\item[{ScalarField \&}]{phi\_\-global, }
\item[{DiagMat \&}]{matrix, }
\item[{ScalarField \&}]{b, }
\item[{const floatTinyArray\_\-t \&}]{deltas}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1Momentum__XCoDi_a4e4a795b05b49505783cd9ddc37fb42e}
The scalarfield {\ttfamily phi\_\-0} defined here is a reference to a global field variable. Here {\ttfamily phi\_\-0} is used as an old value of that field variable. 

Definition at line 64 of file Momentum\_\-XCoDi.hpp.



\subsubsection{Member Function Documentation}
\hypertarget{classTuna_1_1Momentum__XCoDi_a9a90652dd51be81d5e3538e7be350cd1}{
\index{Tuna::Momentum\_\-XCoDi@{Tuna::Momentum\_\-XCoDi}!asDerived@{asDerived}}
\index{asDerived@{asDerived}!Tuna::Momentum_XCoDi@{Tuna::Momentum\_\-XCoDi}}
\paragraph[{asDerived}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ Tscheme\& {\bf Tuna::Momentum\_\-XCoDi}$<$ Tscheme $>$::asDerived (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1Momentum__XCoDi_a9a90652dd51be81d5e3538e7be350cd1}
\hyperlink{classTuna_1_1Momentum__XCoDi_a9a90652dd51be81d5e3538e7be350cd1}{asDerived()} gets an returns a reference to the derived class. 

Reimplemented from \hyperlink{classTuna_1_1GeneralEquation_aac63dc10324dcfdd7aaabdc63ec0c67f}{Tuna::GeneralEquation$<$ Momentum\_\-XCoDi$<$ Tscheme $>$ $>$}.



Definition at line 80 of file Momentum\_\-XCoDi.hpp.

\hypertarget{classTuna_1_1Momentum__XCoDi_ad8b8812ebd97675d751fe6a137fc7e86}{
\index{Tuna::Momentum\_\-XCoDi@{Tuna::Momentum\_\-XCoDi}!calcCoefficients@{calcCoefficients}}
\index{calcCoefficients@{calcCoefficients}!Tuna::Momentum_XCoDi@{Tuna::Momentum\_\-XCoDi}}
\paragraph[{calcCoefficients}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ bool {\bf Tuna::Momentum\_\-XCoDi}$<$ Tscheme $>$::calcCoefficients (
\begin{DoxyParamCaption}
\item[{const ScalarField \&}]{nut}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1Momentum__XCoDi_ad8b8812ebd97675d751fe6a137fc7e86}
Turbulent viscosity is passed as argument (nut) 

Definition at line 116 of file Momentum\_\-XCoDi.hpp.

